/*
 *  Platform.h
 *  pogostick
 *
 *  Created by daddy (chuck@kollar.com) on 9/10/09.
 *  Copyright 2009 Charles P. Kollar All rights reserved.
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#import "chipmunk.h"
#import <math.h>


#define PLATFORM_MASS	(20.0f)

@interface Platform : NSObject {
    NSString *identifier;
	cpSpace *space;
	cpBody *staticBody;
	cpBody *platformBody;
	cpShape *shape;
	cpConstraint *joint;
	cpFloat wall_width;
	cpFloat box_width;
	int direction;
}

@property (readwrite,assign) NSString *identifier;
@property (readwrite,assign) cpSpace *space;
@property (readwrite,assign) cpBody *staticBody;
@property (readwrite,assign) cpBody *platformBody;
@property (readwrite,assign) cpShape *shape;
@property (readwrite,assign) cpConstraint *joint;
@property (readwrite,assign) cpFloat wall_width;
@property (readwrite,assign) cpFloat box_width;
@property (readwrite,assign) int direction;

-(id) init;
-(void) dealloc;

@end
